package com.iss.apartmentmanage.service;

import com.iss.apartmentmanage.entity.User;
import com.iss.apartmentmanage.model.UserWithRole;
import com.iss.apartmentmanage.model.UserWithUserInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    /**
     * 登录模块
     * @param user
     * @return
     */
    UserWithRole login(User user);

    /**
     * 给员工分配账户密码
     * @param user
     * @return
     */
    Integer insertUser(User user);
    Integer getUserIdByUserName(User user);
}
